package com.matt.repository;

import com.matt.domain.Feeds;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/11/27
 * *******************************
 */
public interface FeedsRepository  extends JpaRepository<Feeds, String> {

    @Modifying
    @Query(value = "update user_feeds f set deleted = true where f.linkId = ?1  ", nativeQuery = true)
    void deleteAllByRecordId(String recordId);

}
